#ifndef BTHREAD_H
#define BTHREAD_H

#include <QObject>
#include <QThread>

class BThread : public QThread
{
Q_OBJECT
public:
   BThread(){
       runFlag = false;
   }
   void setRunFlag();

private:
   volatile bool runFlag;

protected:
   void run()Q_DECL_OVERRIDE;//线程任务

signals:
   void finished();
};

#endif // BTHREAD_H
